package com.uum.admin.service;

import com.uum.admin.pojo.entity.SysMenu;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Tsang_yc
 * @since 2022-01-14
 */
public interface SysMenuService extends IService<SysMenu> {

     List<SysMenu> listMenu();

    boolean delMenuTreeById(Long id);

    List<SysMenu> listMenuByName(String name);

    /**
     * 根据用户角色的Id查询出对应的菜单列表
     * @param roleIds
     * @return
     */
    List<SysMenu> listMenuByUserRoleId(List<Long> roleIds);
}
